﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LayerDTO;
using LayerDAO;

namespace LayerBUS
{
    public class PhieuNhapBUS
    {
        public static List<PhieuNhapDTO> LayDanhSachPhieuNhap(string connect)
        {
            PhieuNhapDAO pnDao = new PhieuNhapDAO();
            return pnDao.LayDanhSachPhieuNhap(connect);
        }
        public static void XoaPhieuNhap(PhieuNhapDTO pnDto,string connect )
        {
            PhieuNhapDAO pnDao = new PhieuNhapDAO();
            pnDao.XoaPhieuNhap(pnDto, connect);
        }
        public static void SuaPhieuNhap(PhieuNhapDTO pnDto, string connect)
        {
            PhieuNhapDAO pnDao = new PhieuNhapDAO();
            pnDao.SuaPhieuNhap(pnDto, connect);
        }

       
    }
}
